package com.glorysoft.hlgdpda.bindingadapter

import android.graphics.Color
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.BindingAdapter
import com.glorysoft.tonglingxjpda.entity.BatchListEntity

/**
 * FileName: TabIndexGridAdapter
 * Author: XJH
 * Date: 2021/5/13 17:46
 * Description:
 * History:
 */
object PicAdapter {

    @BindingAdapter(value = ["picSetBg"], requireAll = false)
    @JvmStatic
    fun setPicBg(iv: ImageView, item: BatchListEntity.BatchInfoEntity) {
        iv.visibility = if (item.ISPIC == "Y") View.VISIBLE else View.INVISIBLE
    }

}